/**
 *
 * Copyright (c) 2011, 2018 Eurotech and/or its affiliates and others
 *
 *  All rights reserved. This program and the accompanying materials
 *  are made available under the terms of the Eclipse Public License v1.0
 *  which accompanies this distribution, and is available at
 *  http://www.eclipse.org/legal/epl-v10.html
 *
 */
/** Add css rules here for your application. */

/** Example rules used by the template application (remove for your app) */

h1 {
	font-size: 2em;
	font-weight: bold;
	color: #777777;
	margin: 40px 0px 70px;
	text-align: center;
}

.sendButton {
	display: block;
	font-size: 16pt;
}

/**********************
Overriding Bootstrap START
***********************/

body {
	overflow-x: hidden;
}

.center-panel {
	padding: 0 !important;
	overflow-y: auto;
}

.row {
	border: none !important;
}

.header-bar .panel-heading {
	padding: 0;
	padding-top: 0.2cm;
	padding-bottom: 0.2cm;
}

.navbar-nav {
	margin: 0 !important;
}

.network-interfaces-panel {
	border: solid 1px #ddd;
	margin-bottom: 0.3cm !important;
	margin-top: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.panel:not(.help-panel):not(.network-interfaces-panel):not(.packages-dropzone-message), .panel-header:not(.help-panel) {
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.panel:not(.help-panel):not(.headerLogo):not(.network-interfaces-panel), .panel-header:not(.help-panel):not(.headerLogo) {
	margin: 0 !important;
}

.panel-body {
	padding: 0 !important;
}

.form-control {
	margin: 0 !important;
}

.container-fluid {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.row {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.col-xs-12, .col-md-12 {
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin: 0 !important;
}

.main-content .col-xs-12, .main-content .col-md-12 {
		padding-left: 0.1cm !important;
	padding-right: 0.1cm !important;
}

.center-panel .panel {
	margin-bottom: 0 !important;
}

.header-bar {
	position: fixed !important;
	top: 0 !important;
	height: 1.5cm !important;
	width: 100vw;
	z-index: 8 !important;
	white-space: nowrap;
}

.header-bar * {
	height: 1.5cm !important;
}

.main-container {
	min-height: 100vh;
	padding-bottom: 2.1cm;
}

.headerLogo {
	height: 1cm !important;
}

table {
	max-width: 100vh;
	overflow-x: auto;
}

.well {
	overflow-x: auto;
}

.well > * {
	padding-left: 0.1cm;
	padding-right: 0.1cm;
}

.form-group {
	margin-left: 0.3cm !important;
	margin-right: 0.3cm !important;
}

.main-content {
	padding-top: 0.3cm;
	padding-bottom: 0.3cm;
}

.command-form, .command-output-panel {
	padding: 0.3cm;
}

.command-output-panel {
	background: white !important;
}

.panel-heading {
	background: none !important;
	font-weight: 500;
    line-height: 1.1;
    font-size: 14px;
}

.btn-group {
	margin-bottom: 0.2cm;
	margin-top: 0.2cm;
	border-radius: 0;
}

* {
	border-radius: 0 !important;
}

.well ul, .well .panel {
	background-color: inherit;
	border: none;
}

.status-well, .connections-well {
	background-color: white !important;
	border: none !important;
}

.bundles-well {
	border: none !important;
	border-bottom: solid 1px #e7e7e7 !important;
    border-right: solid 1px #e7e7e7 !important;
    border-left: solid 1px #e7e7e7 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	-webkit-box-shadow: none !important;
    box-shadow: none !important;
    
}

.bundles-well table {
	border: 1px solid #ddd !important;
}

.device-well .container-fluid {
	padding-top: 0.4cm;
}

.container-fluid {
	border: none;
}

.tooltip {
	z-index: 100 !important;
	position: fixed !important;
}

.rowHeader {
    background-color: rgb(40, 96, 166) !important;
    font-size: 14px !important;
    color: white !important;
    pointer-events: none !important;
}

.network-panel .navbar {
    background-color: inherit !important;
    border: none !important;
}

.drop-down {
    background-color: white !important;
    border: none !important;
}

/**********************
Overriding Bootstrap END
***********************/

/**********************
Upload panel START
***********************/

#uploadModal label {
	padding-top: 0.3cm;
	padding-bottom: 0.3cm;
}

/**********************
Upload panel END
***********************/

/**********************
Channel Table Validation START
***********************/

.cell-not-valid:not(.active), .cell-not-valid:not(.active) *{
	background-color: rgb(239, 214, 214) !important;
}

.cell-not-valid, .cell-not-valid *{
	color: red !important;
}

.cell-readonly .cell-readonly * {
	pointer-events: none;
}

.error-text-box {
	border: 1px solid red !important;
	padding-left: 15px !important;
}

.noerror-text-box {
	padding-left: 15px !important;
}

.assets-status-icon {
	padding: 5px;
}

.cell-clickable {
	cursor: pointer;
}

/**********************
Channel Table Validation END
***********************/

/**********************
Depth START
***********************/

.z-depth-1 {
	z-index: 4;
}

.z-depth-2 {
	z-index: 8;
}

.z-depth-3 {
	z-index: 16;
}

.z-depth-4 {
	z-index: 20;
}

.z-depth-5 {
	z-index: 24;
}

/**********************
Depth  END
***********************/

/**********************
Sidenav START
***********************/

.sidenav-overlay {
	position: fixed !important;
	top: 1.5cm !important;
	bottom: 0 !important;
	left: 0 !important;
	right: 0 !important;
	background-color: rgba(50,50,50,0.5) !important;
	opacity: 1 !important;
	transition: opacity 0.25s;
	z-index: 2;
	pointer-events: all;
}

.sidenav-overlay.sidenav-hidden {
	opacity: 0 !important;
	pointer-events: none;
	-ms-transform: scale(0);
}

.sidenav {
	border-right: 1px solid #ddd;
}

.sidenav .panel-heading {
	margin-bottom: 0.2cm;
}

.sidenav, .sidenav .panel, .sidenav .center-panel, .sidenav .panel-headning, .sidenav .row {
	background-color: rgb(245, 245, 245) !important;
}

@media screen and (min-width: 992px) {

	.header-bar {
		display: none;
	}
	
	.sidebar-button {
		height: auto !important;
		vertical-align: super !important;
		font-size: 0.6cm !important;
		background-color: rgba(0, 0, 0, 0) !important;
		border: none !important;
		display: none !important;
		padding-left: 0.2cm;
		padding-right: 0.2cm;
	}
	
	.sidenav {
    	overflow-y: auto;
	}
	
	.content-wrapper {
    	position: relative;
	}
	
	.sidenav {
		position: fixed! important;
		top: 0;
		bottom: 0;
		overflow: auto;
	}
	
	.main-content {
		position: relative !important;
		left: 16.66666667% !important;
	}
	
	.footer {
		left: 16.66666667% !important;
	}
	
	.sidenav-overlay {
		display: none;
	}
}

@media screen and (max-width: 992px) {
	
	.main-container {
		padding-top: 1.5cm;
	}

	.sidebar-button {
		height: auto !important;
		vertical-align: super !important;
		font-size: 0.6cm !important;
		background-color: rgba(0, 0, 0, 0) !important;
		border: none !important;
		display: block !important;
		float: left !important;
	}
	
	.sidenav {
		position: fixed !important;
		top: 1.5cm !important;
		width: 6cm !important;
		transition: transform 0.25s;
		bottom: 0 !important;
		transform: translateX(0cm);
	}
	
	.sidenav.sidenav-hidden {
		transform: translateX(-6cm);
	}
	
}

.not-scrollable {
	width: 100vw;
	height: 100vh;
	overflow: hidden;
}

.nav li a {
	transition: border-left 0.25s;
	transition: border-bottom 0.25s;
	transition: background-color 0.25s;
}

.sidenav .nav a {
	border-radius: 0;
	border-left: solid 0.1cm rgb(245, 245, 245);
	color: #2860A6;
}

.sidenav .nav a:hover, .sidenav .nav a:active {
	border-left: solid 0.1cm #2860A6;
	background-color: white;
}

.sidenav .nav li.selected-item a {
	border-left: solid 0.15cm #2860A6;
	background-color: white;
}

/**********************
Sidenav END
***********************/

/**********************
Navbar START
***********************/

@media screen and (min-width: 768px) {

.content-panel .navbar-nav li.active {
	border-bottom: solid 0.1cm #2860A6;
}

}

@media screen and (max-width: 768px) {
	
.content-panel .navbar-nav  li.active a {
	border-left: solid 0.1cm #2860A6;
}

}

.content-panel .navbar-nav  a {
	background-color: inherit !important;
}

.nav-tabs {
	border-bottom: solid 1px;
}

.nav-tabs  a {
	background-color: inherit !important;
	border: none !important;
}

.nav-tabs li {
	border: none;
	background-color: inherit;
}

.nav-tabs li.active {
	border-bottom: solid 0.1cm #2860A6;
}

/**********************
Navbar END
***********************/

/**********************
FontAwesome button fix START
***********************/

button.fa {
	font: inherit !important;
}

button.fa:before {
	font: normal normal normal 14px/1 FontAwesome;
}

button.fa:not(:empty):before {
	margin-right: 0.1cm !important;
}

/**********************
FontAwesome button fix END
***********************/

/**********************
Service search fix START
***********************/

.services-form-group {
	width: 100% !important;
	margin: 0 !important;
	position: relative !important;
}

.services-input-group {
	width: 100% !important;
	margin: 0 !important;
	padding-left: 0.3cm !important;
	padding-right: 0.3cm !important;
	height: 0.9cm !important;
	position: relative !important;
}

.services-add {
	padding-left: 0.3cm !important;
}

/**********************
Service search fix END
***********************/

/**********************
Footer START
***********************/

.footer {
	background-color: rgb(242, 242, 242);
	z-index: 1;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
}

.panel-footer * {
	text-align: center !important;
}

/**********************
Footer END
***********************/

/**********************
Help panel START
***********************/

.overlay-help-panel {
	position: fixed;
	z-index: 50;
	width: 100%;
	top: 100%;
	transition: top 0.25s;
	background-color: white;
	overflow: hidden;
	box-shadow: 0 2px 5px 2px rgba(0,0,0,.26) !important;
}

@media screen and (min-width: 992px) {
	.help-button {
	display: none !important;
	}
}

@media screen and (min-width: 992px) {
	.overlay-help-panel {
	display: none;
	}
}

.overlay-help-panel.help-panel-visible {
	top: 70%;
	height: 30%;
}

.overlay-help-panel .help-content {
	padding: 0.3cm;
	width: 100%;
	overflow: auto;
    position: absolute;
    top: 1.1cm;
    bottom: 0;
}

.overlay-help-panel .help-panel-title {
	font-weight: 500;
    line-height: 1.1;
    font-size: 16px;
    float: left;
    padding: 0.3cm;
}

.overlay-help-panel .hide-button {
	float: right;
}

.overlay-help-panel .help-header {
	top: 0;
    position: absolute;
    height: 1.1cm;
    width: 100%;
	border-bottom: solid 1px rgba(0,0,0,.26);
	padding: 0.1cm;
}

.help-button {
	font-size: 0.5cm !important;
	float: right;
    margin-right: 6%;
    padding: 0.1cm !important;
}

.help-block:empty {
	display: none;
}

/**********************
Help panel END
***********************/

/**********************
Modem Help Fix START
***********************/

#modem-help {
	max-width: 20%;
}

#modem-help * {
	max-width 100%;
}

/**********************
Modem Help Fix END
***********************/

/** Most GWT widgets already have a style name defined */
.gwt-DialogBox {
	width: 400px;
}

.dialogVPanel {
	margin: 5px;
}

.serverResponseLabelError {
	color: red;
}

/** Set ids using widget.getElement().setId("idOfElement") */
#closeButton {
	margin: 15px 6px 6px;
}

.x-tree3-node-icon {
	margin-top: 2px;
}

fieldset#configuration-form>div.x-form-label-left>div.x-component {
	padding-bottom: 10px;
	padding-right: 25px;
}

img.x-tree3-node-icon {
	background-size: 100%;
}

/******************************
***
*** Kura Wires
***
*******************************/
#asset-comp-modal #asset-comp-delete-modal #asset-comp-save-modal .modal-dialog
	{
	margin-top: 15%;
}

.wire {
	stroke: #4B4F6A;
}

.composer {
	height: 60vh;
	position: relative;
	-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px
		rgba(0, 0, 0, 0.1) inset;
	-moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px
		rgba(0, 0, 0, 0.1) inset;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1)
		inset;
}

.composer:before, .composer:after {
	content: "";
	position: absolute;
	z-index: -1;
	-webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
	-moz-box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
	top: 0;
	bottom: 0;
	left: 10px;
	right: 10px;
	-moz-border-radius: 100px/10px;
	border-radius: 100px/10px;
}

.composer:after {
	right: 10px;
	left: auto;
	-webkit-transform: skew(8deg) rotate(3deg);
	-moz-transform: skew(8deg) rotate(3deg);
	-ms-transform: skew(8deg) rotate(3deg);
	-o-transform: skew(8deg) rotate(3deg);
	transform: skew(8deg) rotate(3deg);
}

#wires-graph {
	position: relative;
	border: 1px solid gray;
	display: inline-block;
	background: #FFF;
	overflow: hidden;
	padding: 0px;
}

#wires-graph svg {
	background: transparent;
}

/* elements */
.devs text {
	font-weight: 800;
}

.devs .body {
	fill: #ffffff;
	stroke: #31d0c6;
	stroke-width: 4px;
}

.devs .body:hover {
	opacity: 1;
	stroke: #ff7e5d;
}

.devs .label {
	fill: #31d0c6;
	font-size: 12px;
}

.devs .port-body {
	stroke: #ffffff;
	stroke-width: 3px;
	fill: #7c68fc;
}

.devs .port-body:hover {
	opacity: 1;
	fill: #7c68fc;
}

.devs .port-label {
	fill: #ff7e5d;
}

.devs.Atomic .body {
	stroke: #009ae0;
}

.devs.Atomic .body.temporary {
	opacity: 0.5;
	pointer-events: none;
}

.devs.Atomic .label {
	fill: #F39C12;
}

.devs.Atomic.invalid .body {
	stroke: red;
}

.devs.Atomic.invalid .label, .devs.Atomic.invalid .port-label, .devs.Atomic.invalid circle {
	fill: red;
}

.port {
	position: relative;
}

.port-label {
	opacity: 0;
	transition: opacity 0.25s;
	transform: translateY(5px)
}

.port:hover .port-label, .port.connecting .port-label {
	opacity: 1;
}

.port .port-body {
	transition: transform 0.25s;
	transition: fill 0.25s;
}

.port:hover .port-body, .port.connecting .port-body {
	transform: scale(1.05);
	fill: #ff7e5d;
}

/* links */
.link .connection {
	/* stroke: #4B4F6A; */
	/*stroke-width: 4px;*/
	
}

.link .marker-arrowhead, .link .marker-vertex {
	fill: #009ae0;
}

.link .marker-arrowhead:hover {
	fill: #F39C12;
}

.link-tools .tool-remove circle {
	fill: #F39C12;
}

/* highlighting */
/*.element.highlighted rect {
	fill: red;
	stroke: red;
}*/
.devs.highlighted-parent .body {
	stroke: #ff0000;
	transition: stroke 1s;
}

.devs.highlighted-parent .label {
	fill: #ff0000;
	transition: fill 1s;
	text-decoration: underline;
}

/* port styling */
.available-magnet {
	fill: #ccffcc;
}

/** highlight */
/* Cell highlighting - e.g a cell underneath the dragged link get highlighted.
    See joint.dia.cell.js highlight(); */
 .highlighted {
     opacity: 0.7;
 }
 
 /* For some reason, CSS `outline` property
    does not work on `<text>` elements. */
 text.highlighted {
     fill: #FF0000;
 }
 
 /* `outline` doesn't work in Firefox, Opera and IE9+.
    The only engine supporting outlines on SVG elements is Webkit. */
 @media screen and (-webkit-min-device-pixel-ratio:0) {
     .highlighted {
        outline: -webkit-focus-ring-color auto 4px;
         opacity: initial;
     }
 }

#wires-overlay-buttons {
    position: absolute !important;
    bottom: 10px !important;
    right: 10px !important;
}

/**********************
Packages panel dropzone START
***********************/

.packages-dropzone.active {
    display: block;
}

.packages-dropzone {
    position: absolute;
    top: -50px;
    left: -15px;
    right: -15px;
    height: 100vh;
    background-color: black !important;
    display: none;
    opacity: 0.2;
}

.packages-dropzone-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background-color:  transparent !important;
    border-style: solid !important;
    border: dashed 0.1cm !important;
    border-color: white !important;
    font-size: 1cm;
    padding: 0.5cm;
    border-radius: 0.4cm !important;
    color:  white;
}

.packages-panel {
    position: absolute;
    height: 100vh;
    width: 100%;
    padding-right: 30px !important;
}

/**********************
Packages panel dropzone END
***********************/

/******************************
***
*** gwtbootstrap3 CSS rules 
***
*******************************/
#wires-modal .modal-dialog {
	width: 80%;
	height: 90%;
}

#wires-modal .modal-content {
	height: 90%;
}

#wires-modal-stencil {
	border: 1px solid;
	margin-left: 5px;
}

.gwt-PopupPanelGlass {
	width: 100%;
	background-color: #009AE0;
	opacity: 0.3;
}

.btn:not(.sidebar-button) {
	background-color: rgb(40, 96, 166) !important;
	color: white !important;
}

.form-control:not(.services-search) {
	font-size: 11px !important;
	width: 95% !important;
}

/******************************
***
*** Custom CSS rules 
***
*******************************/
/** Fix for unwanted vertical scrollbars in Chrome */
.x-grid3-scroller {
	overflow-x: hidden;
}

/** Prevent input boxes from resizing after changing input */
.kura-combobox input {
	width: 225px !important;
}

.kura-textfield {
	width: 242px !important;
}

.kura-textfield input {
	width: 242px !important;
}

.kura-textfield+img {
	left: 426px !important;
}

#ssid-input input {
	width: 218px !important;
}

#wifi-password input {
	width: 218px !important;
}

div.copyright:after {
	content:
		' Eurotech and others. EPL v1.0';
}

div.headerLogo { 
	height: 			38px;
	margin: 			5px 0px 5px 15px;
	vertical-align: 	baseline;
	background: 		url(eclipse/kura/icons/kura_logo_small.png);
	background-repeat: 	no-repeat;
	background-size: 	contain;
	background-position: center !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

@media screen and (max-width: 992px) {
	
	.sidenav .headerLogo {
		display: none;
	}
	
	.headerLogo {
		max-width: 80%;
		display: inline-block;
		margin-left: 0 !important;
	}

}

@media screen and (min-width: 992px) {
	
	.headerLogo {
		width: 100% !important;
   		margin-top: 0.3cm !important;
   		display: inline-block !important;
	}

}

.failure-handler-stack-trace-container {
	max-height: 50vh;
}